package com.zheng.upms.dao.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * <p>
 * 角色权限关联表
 * </p>
 *
 * @author likun
 * @since 2018-05-02
 */
@TableName("upms_role_organization")
public class UpmsRoleOrganization extends Model<UpmsRoleOrganization> {

    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
	@TableId(value="role_organization_id", type= IdType.AUTO)
	private Integer roleOrganizationId;
    /**
     * 角色编号
     */
	@TableField("role_id")
	private Integer roleId;
    /**
     * 权限编号
     */
	@TableField("organization_id")
	private Integer organizationId;


	public Integer getRoleOrganizationId() {
		return roleOrganizationId;
	}

	public void setRoleOrganizationId(Integer roleOrganizationId) {
		this.roleOrganizationId = roleOrganizationId;
	}

	public Integer getRoleId() {
		return roleId;
	}

	public void setRoleId(Integer roleId) {
		this.roleId = roleId;
	}

	public Integer getOrganizationId() {
		return organizationId;
	}

	public void setOrganizationId(Integer organizationId) {
		this.organizationId = organizationId;
	}

	@Override
	public String toString() {
		return "UpmsRoleOrganization{" +
			"roleOrganizationId=" + roleOrganizationId +
			", roleId=" + roleId +
			", organizationId=" + organizationId +
			"}";
	}

	@Override
	protected Serializable pkVal() {
		return this.getRoleOrganizationId();
	}
}
